package com.itheima.demo05.ObjectMethodReference;

public class Demo01ObjectMethodReference {
    public static void main(String[] args) {
        printString(s->new MethodRerObject().printUpperCaseString(s));
        MethodRerObject obj=new MethodRerObject();
        printString(obj::printUpperCaseString);
    }

    public static void printString(Printable p) {
        p.print("Hello World");
    }
}
